package com.dycs.controller;

import com.dycs.service.ReturnJsonCollection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;

@RestController
@RequestMapping("/books")
public class BookController {

    @Autowired
    private ReturnJsonCollection returnJsonCollection;

    @PostMapping("/jsonString")
    public String getJsons(@RequestBody ArrayList<String> list){

        System.out.println("启动");
        return returnJsonCollection.getIntersection(list);
    }
}
